package com.zbkj.common.model.activity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 组合营销表
 * </p>
 *
 * @author HZW
 * @since 2023-09-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_sportfolio_market_activity")
@ApiModel(value="SportfolioMarketActivity对象", description="组合营销表")
public class SportfolioMarketActivity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "组合营销活动ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商户id")
    private Integer merId;

    @ApiModelProperty(value = "活动名称")
    private String name;

    @ApiModelProperty(value = "活动开始日期")
    private String startDate;

    @ApiModelProperty(value = "活动结束日期")
    private String endDate;

    @ApiModelProperty(value = "活动期间单笔下单购买次数，0不限制")
    private Integer oneQuota;

    @ApiModelProperty(value = "用户类型 0-所有 1-新用户 2-老用户")
    private Integer userType;

    @ApiModelProperty(value = "活动类型 20-满赠 30-组合")
    private String activeType;

    @ApiModelProperty(value = "满足金额")
    private BigDecimal satisfiedAmount;

    @ApiModelProperty(value = "商品id")
    private Integer productId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "展示图")
    private String flatPattern;

    @ApiModelProperty(value = "轮播图")
    private String sliderImage;

    @ApiModelProperty(value = "商品简介")
    private String intro;

    @ApiModelProperty(value = "关键字,英文逗号拼接")
    private String keyword;

    @ApiModelProperty(value = "组合营销关联商品说明")
    private String combinationGoods;

    @ApiModelProperty(value = "开启状态: 0=关闭 1=开启")
    private Integer isOpen;

    @ApiModelProperty(value = "状态:0未开始，1进行中，2已结束")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    private List<SfullDiscountProduct> productList;
}
